/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package banaanvraag.tools.logging;

import java.util.logging.Logger;

/**
 *
 * @author Luc
 */
public class LoggerFabricator {
    public static Logger getLogger(String name) {
        Logger ret = Logger.getLogger(name);
        ret.setUseParentHandlers(false);
        ret.addHandler(new LogHandler());
        return ret;
    }
    
    public static Logger getDebugLogger(String name) {
        Logger ret = Logger.getLogger(name);
        ret.setUseParentHandlers(false);
        ret.addHandler(new DebugHandler());
        return ret;
    }
}
